import BattleField from "../model/battleField.js"
import plugin from "../../../lib/plugins/plugin.js"

export class BattleFieldReport extends plugin {
  constructor() {
    super({
      name: "记忆战场",
      dsc: "崩坏3战场",
      event: "message",
      priority: 100,
      rule: [{ reg: "^#*崩三?(战场|记忆战场)$", fnc: "battleFieldReport" }],
    })
  }

  async battleFieldReport() {
    let data = await new BattleField().getData(this.e)
    this.renderImg("BH3-Plugin", `html/battleField/battleField`, data)
  }
}
